package io.renren.common.mybatis.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.FieldFill;

import java.io.Serializable;
import java.util.Date;

/**
 * @project: renren-fast
 * @author: wangchengda
 * @email: wangchengda1990@gmail.com
 * @date: 2019-01-21
 * @Description: 基础实体类，所有实体都需要继承
 * @Copyright: 2019 broderickwang.github.io Inc. All rights reserved.
 * @version: V1.0
 */
public abstract class BaseEntity implements Serializable {
    /**
     * id
     */
    @TableId
    private String id;
    /**
     * 创建者
     */
    @TableField(fill = FieldFill.INSERT)
    private String creater;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createDate;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCreater() {
        return creater;
    }

    public void setCreater(String creater) {
        this.creater = creater;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }
}